//-----------------------------------------------------------------------
// <copyright file="a_SessionBase.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
	
using System;
using System.Data;
using System.ComponentModel;
using System.Collections;

namespace ThoiTrang.Entities
{
	[Serializable]
	public class a_SessionBase
	{
		
		#region Variable Declarations
		private string				sessionID = string.Empty;
		private DateTime				time_stamp = new DateTime(1900,1,1,0,0,0,0);
		private string				cookieID = string.Empty;
		private bool				login_Status = false;
		private string				remoteIP = string.Empty;
		private string				referrer = string.Empty;
		private int				hits = 0;
		#endregion
		
		#region Constructors
		public a_SessionBase() {}
		
		public a_SessionBase (
			string sessionID,
			DateTime time_stamp,
			string cookieID,
			bool login_Status,
			string remoteIP,
			string referrer,
			int hits)
		
		{
			this.sessionID = sessionID;
			this.time_stamp = time_stamp;
			this.cookieID = cookieID;
			this.login_Status = login_Status;
			this.remoteIP = remoteIP;
			this.referrer = referrer;
			this.hits = hits;
		}
		#endregion
		
		#region Properties	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is varchar</value>
		public string SessionID
		{
			get { return sessionID; }
			set { sessionID = value; }
		}
		public string originalSessionID
		{
			get { return originalSessionID; }
			set { originalSessionID = value; }
		} 
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is datetime</value>
		public DateTime Time_stamp
		{
			get { return time_stamp; }
			set { time_stamp = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is varchar</value>
		public string CookieID
		{
			get { return cookieID; }
			set { cookieID = value; }
		}
	
		/// <summary>
		/// 	0 = No, 1 = Yes
		/// </summary>
		/// <value>This type is bit</value>
		public bool Login_Status
		{
			get { return login_Status; }
			set { login_Status = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is varchar</value>
		public string RemoteIP
		{
			get { return remoteIP; }
			set { remoteIP = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is varchar</value>
		public string Referrer
		{
			get { return referrer; }
			set { referrer = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int Hits
		{
			get { return hits; }
			set { hits = value; }
		}
	
		
		#endregion
	}//End Class
	
	public enum a_SessionColumns
	{
		SessionID,
		Time_stamp,
		CookieID,
		Login_Status,
		RemoteIP,
		Referrer,
		Hits
	}//End enum
}